using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;

namespace HDS.Model.Entity.Master
{
    /// <summary>
    /// 分销商酒店设置 
    /// </summary>
    [SugarTable("distributor_hotel_setting")]
    public class DistributorHotelSetting
    {

        /// <summary>
        /// 酒店id
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, ColumnName = "hotel_id")]
        public int HotelId { get; set; }

        /// <summary>
        /// 分销商
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, ColumnName = "distributor")]
        public string Distributor { get; set; }

        /// <summary>
        /// 供应商
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, ColumnName = "supplier")]
        public string Supplier { get; set; }

        /// <summary>
        /// 上线状态 1在线 0下线
        /// </summary>
        [SugarColumn(ColumnName = "isonline")]
        public bool? Isonline { get; set; }

        /// <summary>
        /// 最小提前预订小时数
        /// </summary>
        [SugarColumn(ColumnName = "min_adv_book_hour")]
        public int? MinAdvBookHour { get; set; }

        /// <summary>
        /// 最小入住晚数
        /// </summary>
        [SugarColumn(ColumnName = "min_stay_nights")]
        public int? MinStayNights { get; set; }

        /// <summary>
        /// 每日禁售开始时间
        /// </summary>
        [SugarColumn(ColumnName = "invalid_start_time")]
        public int? InvalidStartTime { get; set; }

        /// <summary>
        /// 每日禁售结束时间
        /// </summary>
        [SugarColumn(ColumnName = "invalid_end_time")]
        public int? InvalidEndTime { get; set; }

        /// <summary>
        /// 是否使用缓存 1是 0否
        /// </summary>
        [SugarColumn(ColumnName = "use_cache")]
        public bool? UseCache { get; set; }

        /// <summary>
        /// 更新人id
        /// </summary>
        [SugarColumn(ColumnName = "updated_by")]
        public int UpdatedBy { get; set; }

        /// <summary>
        /// 更新人姓名
        /// </summary>
        [SugarColumn(ColumnName = "updated_by_name")]
        public string UpdatedByName { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        [SugarColumn(ColumnName = "updated_time")]
        public DateTime UpdatedTime { get; set; }

    }
}
